﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="Hienthiloaimaytinh.aspx.cs" Inherits="admin_Hienthiloaimaytinh" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form id="form1" runat="server">
    <table style="width:100%;">
        <tr>
            <td>
            
            <table>
                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
                <HeaderTemplate>
                <tr>
                            <th>Mã Loại Máy Tính</th>
							<th>Tên Loại Máy Tính</th>			
                
                </tr>
                
                </HeaderTemplate>
                <ItemTemplate>
                <tr>
                            <td><asp:HyperLink ID="hplMaLoaiMT" runat="server" NavigateUrl='<%# "~/ThemLoaiMayTinh.aspx?maloai=" + DataBinder.Eval(Container.DataItem,"maloai")%>' Text='<%# DataBinder.Eval(Container.DataItem,"maloai")%>' /></td>
							<td><%#Eval("tenloai")%></td>													
							<td><asp:ImageButton ID="imagebtxoa" runat="server" Width="20px" Height="20px" CommandArgument='dk' CommandName="Xoa" OnClientClick='return isconfirm()'
                             ImageUrl="images/action_remove.png" /><a href="SuaLoaiMayTinh.aspx?maloai=<%#Eval("maloai")%>"><img src="images/action_check.png" alt="Check" /></a></td>
                
                </tr>
                
                
                </ItemTemplate>
                </asp:Repeater>
                
                </table>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:maytinhxachtayConnectionString %>" 
                    SelectCommand="SELECT [MaLoai], [TenLoai] FROM [LoaiMayTinh]">
                </asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        </table>
    </form>
</asp:Content>

